<?php

namespace App\Service\Account;

use PHPSpring\Web\BaseService;
use App\Dao\Account\UserDao;
use App\Entity\Account\User as UserEntity;

/** @Service */
class UserService extends BaseService {

  /** @Autowired */
  private UserDao $userDao;

  public function getUser($uid) {
    return $user = $this->userDao->selectById($uid);
  }

  public function saveBatch1 ($arg) {
    throw new \PHPSpring\Core\BizException('error', -2);
    return 2;
  }

}
